// import { _decorator, Component, Label, Node, sys } from 'cc';
// import S2048_GameManager from "../../SubGame/2048/Script/S2048_GameManager";
// import DragTetris_GameManager from "../../SubGame/DragTetris/Script/Manager/DragTetris_GameManager";
// import Gomoku_GameManager from "../../SubGame/Gomoku/Script/Gomoku_GameManager";
// import HeChengDaXiGua_GameManager from "../../SubGame/HeChengDaXiGua/Script/HeChengDaXiGua_GameManager";
// import Minesweeper_GameManager from "../../SubGame/Minesweeper/Script/Manager/Minesweeper_GameManager";
// import { ShuZiHuaRongDao_GameManager } from "../../SubGame/ShuZiHuaRongDao/Script/ShuZiHuaRongDao_GameManager";
// import TurkishTetris_GameManager from "../../SubGame/TurkishTetris/game/Script/XXL/Manager/TurkishTetris_GameManager";
// import ShuaiFunction from "../Utils/ShuaiFunction";

// const { ccclass, property } = _decorator;

// @ccclass('SSS_DebugPanel')
// export default class SSS_DebugPanel extends Component {
//     public static Instance: SSS_DebugPanel;
//     @property(Node)
//     Button_close: Node | null = null;
//     @property(Node)
//     main: Node | null = null;
//     @property(Node)
//     Button_left: Node | null = null;
//     @property(Node)
//     Button_right: Node | null = null;
//     @property(Node)
//     parent: Node | null = null;

//     list: any[] = new Array();

//     onLoad() {
//         SSS_DebugPanel.Instance = this;
//     }

//     start() {
//         this.Button_close.on('click', () => {
//             this.ShowOff();
//         }, this);

//         this.AddButtons();

//         ShuaiFunction.SetAllChildrenAtive(this.parent, false);
//         for (let i = 0; i <= this.list.length - 1; i++) {
//             let obj = this.list[i];

//             let child = ShuaiFunction.GetFreeChild(this.parent);
//             child.active = true;

//             let label = child.getComponentInChildren(Label);
//             label.string = obj.title;

//             child.on('click', () => {
//                 obj.callback();
//                 this.ShowOff();
//             }, this);
//         }
//     }
//     AddButtons() {
//         this.list.push({
//             title: "合成大西瓜失败", callback: () => {
//                 HeChengDaXiGua_GameManager.Instance.gameOver();
//             }
//         });

//         this.list.push({
//             title: "2048失败", callback: () => {
//                 S2048_GameManager.Instance.Lose();
//             }
//         });

//         this.list.push({
//             title: "土耳其方块失败", callback: () => {
//                 TurkishTetris_GameManager.Dead();
//             }
//         });

//         this.list.push({
//             title: "俄罗斯托方块失败", callback: () => {
//                 DragTetris_GameManager.Instance.Lose();
//             }
//         });


//         this.list.push({
//             title: "数字华容道成功", callback: () => {
//                 ShuZiHuaRongDao_GameManager.Instance.Win();
//             }
//         });

//         this.list.push({
//             title: "五子棋成功", callback: () => {
//                 Gomoku_GameManager.Instance.Win();
//             }
//         });

//         this.list.push({
//             title: "扫雷成功", callback: () => {
//                 Minesweeper_GameManager.Instance.Win();
//             }
//         });

//         this.list.push({
//             title: "清除本地数据", callback: () => {
//                 sys.localStorage.clear();
//             }
//         });
//     }

//     ShowOn() {
//         // this.node.active = true;
//         this.main.active = true;
//     }
//     ShowOff() {
//         // this.node.active = false;
//         // this.main.active = false;
//         this.node.destroy();
//     }
// }